import 'package:flutter/material.dart';

class Scroll extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: Text("基础组件"),
      ) ,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("SingleChildScrollView"),
              onPressed: (){
                Navigator.of(context).pushNamed('/scroll/scroll_demo');
              },
            ),
            RaisedButton(
              child: Text("ListView"),
              onPressed: (){
                Navigator.of(context).pushNamed('/scroll/list');
              },
            ),
            RaisedButton(
              child: Text("GridView"),
              onPressed: () {
                Navigator.of(context).pushNamed('/scroll/grid');
              },
            ),
            RaisedButton(
              child: Text("CustomScrollView"),
              onPressed: (){
                Navigator.of(context).pushNamed('/scroll/custom');
              },
            ),
            RaisedButton(
              child: Text("滚动监听及控制"),
              onPressed: (){
                Navigator.of(context).pushNamed('/scroll/listen');
              },
            ),
          ],
        ),
      ),

    );
  }
}